﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using AspNetCs.SQLServerDAL;
using AspNetCs.IDAL;

namespace AspNetCs.SQLServerDAL
{
    public class ExcuteSqlText_DAL:IExcuteSqlText
    {
        public DataTable GetDataTable(string cmdText)
        {
            DataTable dataTable = new DataTable();
            db dbclass = new db();
            dataTable = dbclass.GetSql_DataTable(cmdText);
            return dataTable;
        }

        public DataSet GetDataSet(string cmdText)
        {
            DataSet ds = new DataSet();
            db dbclass = new db();
            ds = dbclass.GetSql_DataSet(cmdText);
            return ds;
        }

        public int ExcuteResult(string cmdText)
        {
            int count = 0;
            db dbclass = new db();
            count = dbclass.ExcSql(cmdText);
            return count;
        }
    }
}
